import Vue from "vue";
import Router from "vue-router";
// import Home from "./views/Home/Home.vue";
// import Monitor from "./views/Monitor/Monitor.vue";
import Monitor2 from "./views/Monitor2";
import Events from "./views/Events/Events.vue";
// import Events2 from "./views/Events2";
import StationAnalysis from "./views/StationAnalysis";
import TabContent from "./views/StationAnalysis/tabContent.vue";
// import SubCompanyAnalysis from "./views/SubCompanyAnalysis";
import Login from "./views/Login/login.vue";
import Main from "./views/Main/Main.vue";
import ModifyPwd from './views/ModifyPwd/ModifyPwd.vue'
import Register from './views/Register/Register.vue'
import Intergrity from "./views/Intergrity"
import VideoContent from "./views/VideoContent"
import MonitorCheck from "./views/MonitorCheck"

// import Home2 from "./views/Home2";

Vue.use(Router);

export default new Router({
  mode: "history",
  base: process.env.BASE_URL,
  routes: [
    {
      path: "/login",
      name: "login",
      component: Login
    },
    {
      path: "/modify-pwd",
      name: "modify-pwd",
      component: ModifyPwd
    },
    {
      path: "/register",
      name: "register",
      component: Register
    },
    {
      path: "/",
      name: "_home",
      redirect: "/Intergrity",
      component: Main,
      children: [
        // {
        //   path: "/station-analysis",
        //   name: "station-analysis",
        //   component: StationAnalysis,
        //   children: [
        //     {
        //       // 使用params传参，参数名为dateTime
        //       path: "station/:dateTime",
        //       name: "station",
        //       component: TabContent,
        //     }
        //   ]
        // },
        {
          path: "/videocontent",
          name: "videocontent",
          component: VideoContent,
        },
        {
          path: "/intergrity",
          name: "intergrity",
          component: Intergrity,
        },
        {
          path: "/monitorcheck",
          name: "monitorcheck",
          component: MonitorCheck,
        },
        {
          path: "/events",
          name: "events",
          component: Events,
        }
      ]
    }
  ]
});
